From: Alexander Larsson Date: Mon, 16 Feb 2015 15:56:05 +0000 (+0100) Subject: screencast: Make it possible to disable draw-cursor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1856 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8d617166feaf7afb04f3dbf2d41b64f5233976ed;p=gnome-shell.git screencast: Make it possible to disable draw-cursor drawing cursor is on by default, so the code: if (options['draw-cursor']) recorder.set_draw_cursor(options['draw-cursor']); never lets you unset it. Fix is to use 'draw-cursor' in options instead. https://bugzilla.gnome.org/show_bug.cgi?id=744599 --- diff --git a/js/ui/screencast.js b/js/ui/screencast.js index dd78d39f7..bbda5fc5c 100644 --- a/js/ui/screencast.js +++ b/js/ui/screencast.js @@ -99,7 +99,7 @@ const ScreencastService = new Lang.Class({ recorder.set_pipeline(options['pipeline']); if (options['framerate']) recorder.set_framerate(options['framerate']); - if (options['draw-cursor']) + if ('draw-cursor' in options) recorder.set_draw_cursor(options['draw-cursor']); },